<!--又一个网页时钟的做法-->
<html>
	<head>
		<title></title>
		<script>
			function tick() {
				var hours, minutes, seconds, xfile;
				var intHours, intMinutes, intSeconds:
					var today;
				today = new Date();
				intHours = today.getHours();
				intMinutes = today.getMinutes();
				intSeconds = today.getSeconds();
				if(intHours == 0) {
					hours = "12: ";
					xfile = "现在是午夜， 该休息了！";
				} else if(intHours < 12) {
					hours = intHours + ": ";\
					xfile = "现在是上午， 新的一天开始了！";
					else if(intHours == 12) {
						hours = "12: ";
						xfile = "现在是正午，该吃饭了！";
					} else {
						intHours = intHours - 12
						hours = intHours + ": ";
						xfile = "现在是下午， 抓紧时间吧！";
					}
					if(intMinutes < 10) {
						minutes = "0" + intMinutes + ": ";
					} else {
						minutes = intMinutes + ": ";
					}
					if(intSeconds < 10) {
						seconds = "0" + intSceonds + ""
					} else {}
					seconds = intSeconds = "";
					timeString = xfile + hours + minutes + seconds;
					Clock.innerHTML = timeString;
					window.setTimeout("tick();", 100);
				}
				window.onload = tick;
		</script>
	</head>

	<body>
		<div id="Clock" aligh="center" style="font-size: 20; color:#000000"></div>
	</body>
</html>